# ===================
# Route
# ===================

app = APP.app

routeMap =
    "": app.toHomePage

Router = Backbone.Router.extend routes: routeMap
router = new Router

APP.navigate = (target, notTrigger) ->
    router.navigate target, trigger: !notTrigger, replace: notTrigger

APP.replace = (target) ->
    router.navigate target, trigger: true, replace: true

$ ->
    Backbone.history.start()